import request from '@/utils/request'

export default {
  // 模糊查询带分
  getList(page){
    return request({
      url:`/oaReceipt/getList`,
      method:'get',
      params:{pageIndex:page.index,pageSize:page.size}
    })
  },
  // 根据id查通知列表
  getById(id){
    return request({
      url:`/oaReceipt/getById/${id}`,
      method:'get'
    })
  },
  // 根据id删除通知列表
  deleteById(id){
    return request({
      url:`/oaReceipt/delete/${id}`,
      method:'delete'
    })
  },
  delete(ids){
    return request({
      url:`/oaReceipt/deleteByIds`,
      method:'delete',
      data:ids
    })
  },
  // 登记收文
  save(oaOdReceiptCreateEntity ){
    return request({
      url:`/oaReceipt/save`,
      method:'post',
      data:oaOdReceiptCreateEntity
    })
  },
  // 添加到审核模块
  audit(data){
    return request({
      url:`/oaReceipt/audit`,
      method:'post',
      data
    })
  },
  // 收文审核模糊查询带分页,我的审核列表
  getMyAuditList(page){
    return request({
      url:`/oaReceipt/getMyAuditList`,
      method:'get',
      params:{pageIndex:page.index,pageSize:page.size}
    })
  },
  // 收文审核处理
  auditHandle(id,param){
    return request({
      url:`/oaReceipt/auditHandle/${id}`,
      method:'post',
      data:param
    })
  },
  // 待办收文列表
  getMyBacklogList(page){
    return request({
      url:`/oaReceipt/getMyBacklogList`,
      method:'get',
      params:{pageIndex:page.index,pageSize:page.size}
    })
  },
  // 已办收文列表
  getMyDoneList(page){
    return request({
      url:`/oaReceipt/getMyDoneList`,
      method:'get',
      params:{pageIndex:page.index,pageSize:page.size}
    })
  },
  // 待办收文办理
  receiptDocumentHandle(id,comment){
    return request({
      url:`/oaReceipt/receiptDocumentHandle/${id}`,
      method:'put',
      data:comment
    })
  },
  // /param/getGuiDangFenLeiList
  // 收文系统 归档分类
  getGuiDangFenLeiList(){
    return request({
      url:`/param/getGuiDangFenLeiList`,
      method:'get',
    })
  },
  // /param/getLaiWenHaoList
  // 收文系统 来文号
  getLaiWenHaoList(){
    return request({
      url:`/param/getLaiWenHaoList`,
      method:'get',
    })
  },
  // /param/getLaiWenLeiXingList
  // 收文系统 来文类型
  getLaiWenLeiXingList(){
    return request({
      url:`/param/getLaiWenLeiXingList`,
      method:'get',
    })
  },
  // /param/getReceiptLevel
  // 收文系统 等级
  getReceiptLevel(){
    return request({
      url:`/param/getReceiptLevel`,
      method:'get',
    })
  },
  // /param/getBaoGuanQiXianList
  // 收文系统 保管期限
  getBaoGuanQiXianList(){
    return request({
      url:`/param/getBaoGuanQiXianList`,
      method:'get',
    })
  },
  // /param/getShenHeCanShuList
  // 审核参数
  getShenHeCanShuList(){
    return request({
      url:`/param/getShenHeCanShuList`,
      method:'get',
    })
  },
  // /oaReceipt/getCodeNo
  // 获取收文号
  getCodeNo(){
    return request({
      url:`/oaReceipt/getCodeNo`,
      method:'get',
    })
  }
}
